import Core.DataBase as DataBase
import Core.Realtimeview as Realtimeview


class RealtimeDB(DataBase.DataBase):

    def __init__(self, address, port, username="root", password=None):
        self.realtime = Realtimeview(address, port, 0, password)

    def Get_Instruments(self, instrument_type, filter=[], projection=[], listed=True):
        pass

    def Get_Instruments_DataFrame(self, instrument_type, filter=[], projection=[], listed=True):
        pass

    def Get_Daily_Bar_DataFrame(self, symbol, instrument_type, projection=[], datetime1=None, datetime2=None):
        pass

    def Get_Stock_Daily_Bar_DataFrame(self, symbol, projection=[], datetime1=None, datetime2=None):
        pass

    def Get_Mutual_Fund_Daily_Bar(self, symbol, projection=[], datetime1=None, datetime2=None):
        pass

    def Get_Index_Daily_Bar(self, symbol, projection=[], datetime1=None, datetime2=None):
        pass

    def GetDataFrame(self, databaseName, tableName, filter={}, projection=[], datetime1=None, datetime2=None, sort=None):
        pass
